package tmt.usercenter.web.domain.enums;


import com.tmt.annotation.EnumDescriptor;
import com.tmt.annotation.parser.EnumAnnotationParser;

/**
 * 外部公众账号类型
 * Created by Stark on 2017/3/1.
 */
@SuppressWarnings("all")
public enum TmtOauthType {

	@EnumDescriptor(title = "本地账号", description = "本地账号")
	LOCAL,

	/** Github 账号 */
	@EnumDescriptor(title = "Github账号", description = "Github账号")
	GITHUB,

	/** 微博 */
	@EnumDescriptor(title = "微博", description = "微博")
	WEIBO,

	/** 微信 */
	@EnumDescriptor(title = "微信", description = "微信")
	WEIXIN,

	/** QQ */
	@EnumDescriptor(title = "QQ", description = "QQ")
	QQ;

	public static TmtOauthType from(String title) {
		return EnumAnnotationParser.convertFromTitle(TmtOauthType.class, title);
	}
}
